package com.bootdo.blog.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.blog.dao.OperatorMapper;
import com.bootdo.blog.domain.OperatorDO;
import com.bootdo.blog.service.OperatorService;



@Service
public class OperatorServiceImpl implements OperatorService {
	@Autowired
	private OperatorMapper operatorMapper;
	
	@Override
	public OperatorDO get(Integer operatorId){
		return operatorMapper.get(operatorId);
	}
	
	@Override
	public List<OperatorDO> list(Map<String, Object> map){
		return operatorMapper.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return operatorMapper.count(map);
	}
	
	@Override
	public int save(OperatorDO operator){
		return operatorMapper.save(operator);
	}
	
	@Override
	public int update(OperatorDO operator){
		return operatorMapper.update(operator);
	}
	
	@Override
	public int remove(Integer operatorId){
		return operatorMapper.remove(operatorId);
	}
	
	@Override
	public int batchRemove(Integer[] operatorIds){
		return operatorMapper.batchRemove(operatorIds);
	}
	
}
